﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SoundPlayer : MonoBehaviour {
    private static SoundPlayer _instance;
    public static SoundPlayer Instance
    {
        get
        {
            return _instance;
        }
    }
    private SoundPlayer()
    {
        _instance = this;
    }

    public AudioClip click1;
    public AudioClip click2;
    public AudioClip alarm;
    public AudioClip explore1;
    public AudioClip explore2;
    public AudioClip explore3;
    public AudioClip Boom;

    public void PlaySound(AudioClip clip)
    {
        GetComponent<AudioSource>().clip = clip;
        GetComponent<AudioSource>().Play();
    }
}
